package com.user.entity;

import java.util.HashSet;
import java.util.Set;

/**
 * <p>Title: Role</p>
 * <p>Description: </p> 
 * @author liukang
 * @date 2017年7月7日
 */
public class Role {
	private Integer rid;
	private String rname;
	private Set<User> users = new HashSet<User>();
	private Set<Module> modules = new HashSet<>();
	/**
	 * @return the rid
	 */
	public Integer getRid() {
		return rid;
	}
	/**
	 * @param rid the rid to set
	 */
	public void setRid(Integer rid) {
		this.rid = rid;
	}
	
	/**
	 * @return the users
	 */
	public Set<User> getUsers() {
		return users;
	}
	/**
	 * @param users the users to set
	 */
	public void setUsers(Set<User> users) {
		this.users = users;
	}
	/**
	 * @return the modules
	 */
	public Set<Module> getModules() {
		return modules;
	}
	/**
	 * @param modules the modules to set
	 */
	public void setModules(Set<Module> modules) {
		this.modules = modules;
	}
	/**
	 * @return the rname
	 */
	public String getRname() {
		return rname;
	}
	/**
	 * @param rname the rname to set
	 */
	public void setRname(String rname) {
		this.rname = rname;
	}
	
	
}
